package com.wandian.view.ui
{
	import flash.filters.GlowFilter;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;

	/**
	 * 文字按钮
	 * @author long
	 */
	public class TextButton extends Button
	{
		private var _tip:TextField=new TextField();
		private var _textFormat:TextFormat;
		public function TextButton(btntext:String,btn_BitMapClass:Class, btn_over_BitMapClass:Class, btn_disable_BitMapClass:Class,boolButton:Boolean=false,tx:int=0,ty:int=0)
		{
			super(btn_BitMapClass, btn_over_BitMapClass, btn_disable_BitMapClass);
			this._textFormat=new TextFormat("宋体", 18, 0xffffff, true);
			this.buttonMode=boolButton;
			//_tip.filters=[new GlowFilter(0Xffffff,0.3,2,2,255)];
			_tip.defaultTextFormat=this._textFormat;
			_tip.autoSize=TextFieldAutoSize.CENTER;
			_tip.mouseEnabled=false;
			_tip.text=btntext
			_tip.x=tx;
			_tip.y=ty;
			this.addChild(_tip);
		}
	}
}